 class User < ApplicationRecord
  has_one :history
  has_one :picklist
  has_one :playlist_fav
  has_one :singer_fav
  has_one :song_fav
  delegate :playlists, to: :playlist_fav
  delegate :singers, to: :singer_fav

  after_create do |user|
    user.create_song_fav
    user.create_playlist_fav
    user.create_singer_fav
    user.create_picklist
    user.create_history
  end
end
